﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003E5 RID: 997
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DoGachaInRollShopCsReq : IMessage<DoGachaInRollShopCsReq>, IMessage, IEquatable<DoGachaInRollShopCsReq>, IDeepCloneable<DoGachaInRollShopCsReq>, IBufferMessage
	{
		// Token: 0x17000CC6 RID: 3270
		// (get) Token: 0x06002C93 RID: 11411 RVA: 0x0007AFB5 File Offset: 0x000791B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DoGachaInRollShopCsReq> Parser
		{
			get
			{
				return DoGachaInRollShopCsReq._parser;
			}
		}

		// Token: 0x17000CC7 RID: 3271
		// (get) Token: 0x06002C94 RID: 11412 RVA: 0x0007AFBC File Offset: 0x000791BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DoGachaInRollShopCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000CC8 RID: 3272
		// (get) Token: 0x06002C95 RID: 11413 RVA: 0x0007AFCE File Offset: 0x000791CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DoGachaInRollShopCsReq.Descriptor;
			}
		}

		// Token: 0x06002C96 RID: 11414 RVA: 0x0007AFD5 File Offset: 0x000791D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaInRollShopCsReq()
		{
		}

		// Token: 0x06002C97 RID: 11415 RVA: 0x0007AFDD File Offset: 0x000791DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaInRollShopCsReq(DoGachaInRollShopCsReq other) : this()
		{
			this.rollShopId_ = other.rollShopId_;
			this.gachaCount_ = other.gachaCount_;
			this.gachaRandom_ = other.gachaRandom_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002C98 RID: 11416 RVA: 0x0007B01A File Offset: 0x0007921A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaInRollShopCsReq Clone()
		{
			return new DoGachaInRollShopCsReq(this);
		}

		// Token: 0x17000CC9 RID: 3273
		// (get) Token: 0x06002C99 RID: 11417 RVA: 0x0007B022 File Offset: 0x00079222
		// (set) Token: 0x06002C9A RID: 11418 RVA: 0x0007B02A File Offset: 0x0007922A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RollShopId
		{
			get
			{
				return this.rollShopId_;
			}
			set
			{
				this.rollShopId_ = value;
			}
		}

		// Token: 0x17000CCA RID: 3274
		// (get) Token: 0x06002C9B RID: 11419 RVA: 0x0007B033 File Offset: 0x00079233
		// (set) Token: 0x06002C9C RID: 11420 RVA: 0x0007B03B File Offset: 0x0007923B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaCount
		{
			get
			{
				return this.gachaCount_;
			}
			set
			{
				this.gachaCount_ = value;
			}
		}

		// Token: 0x17000CCB RID: 3275
		// (get) Token: 0x06002C9D RID: 11421 RVA: 0x0007B044 File Offset: 0x00079244
		// (set) Token: 0x06002C9E RID: 11422 RVA: 0x0007B04C File Offset: 0x0007924C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaRandom
		{
			get
			{
				return this.gachaRandom_;
			}
			set
			{
				this.gachaRandom_ = value;
			}
		}

		// Token: 0x06002C9F RID: 11423 RVA: 0x0007B055 File Offset: 0x00079255
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DoGachaInRollShopCsReq);
		}

		// Token: 0x06002CA0 RID: 11424 RVA: 0x0007B064 File Offset: 0x00079264
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DoGachaInRollShopCsReq other)
		{
			return other != null && (other == this || (this.RollShopId == other.RollShopId && this.GachaCount == other.GachaCount && this.GachaRandom == other.GachaRandom && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002CA1 RID: 11425 RVA: 0x0007B0C0 File Offset: 0x000792C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RollShopId != 0U)
			{
				num ^= this.RollShopId.GetHashCode();
			}
			if (this.GachaCount != 0U)
			{
				num ^= this.GachaCount.GetHashCode();
			}
			if (this.GachaRandom != 0U)
			{
				num ^= this.GachaRandom.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002CA2 RID: 11426 RVA: 0x0007B131 File Offset: 0x00079331
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002CA3 RID: 11427 RVA: 0x0007B139 File Offset: 0x00079339
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002CA4 RID: 11428 RVA: 0x0007B144 File Offset: 0x00079344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GachaCount != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.GachaCount);
			}
			if (this.RollShopId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.RollShopId);
			}
			if (this.GachaRandom != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.GachaRandom);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002CA5 RID: 11429 RVA: 0x0007B1BC File Offset: 0x000793BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RollShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RollShopId);
			}
			if (this.GachaCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaCount);
			}
			if (this.GachaRandom != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaRandom);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002CA6 RID: 11430 RVA: 0x0007B22C File Offset: 0x0007942C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DoGachaInRollShopCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RollShopId != 0U)
			{
				this.RollShopId = other.RollShopId;
			}
			if (other.GachaCount != 0U)
			{
				this.GachaCount = other.GachaCount;
			}
			if (other.GachaRandom != 0U)
			{
				this.GachaRandom = other.GachaRandom;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002CA7 RID: 11431 RVA: 0x0007B290 File Offset: 0x00079490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002CA8 RID: 11432 RVA: 0x0007B29C File Offset: 0x0007949C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 64U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.GachaRandom = input.ReadUInt32();
						}
					}
					else
					{
						this.RollShopId = input.ReadUInt32();
					}
				}
				else
				{
					this.GachaCount = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040011A8 RID: 4520
		private static readonly MessageParser<DoGachaInRollShopCsReq> _parser = new MessageParser<DoGachaInRollShopCsReq>(() => new DoGachaInRollShopCsReq());

		// Token: 0x040011A9 RID: 4521
		private UnknownFieldSet _unknownFields;

		// Token: 0x040011AA RID: 4522
		public const int RollShopIdFieldNumber = 8;

		// Token: 0x040011AB RID: 4523
		private uint rollShopId_;

		// Token: 0x040011AC RID: 4524
		public const int GachaCountFieldNumber = 7;

		// Token: 0x040011AD RID: 4525
		private uint gachaCount_;

		// Token: 0x040011AE RID: 4526
		public const int GachaRandomFieldNumber = 15;

		// Token: 0x040011AF RID: 4527
		private uint gachaRandom_;
	}
}
